<template>
  <div class="login">
    <!-- <div class="login-top">通信链路监测软件</div> -->
    <div class="login-content">
      <div class="login-input">
        <div class="login-input-title">用户登录</div>
        <div class="login-input-user-psd">
          <div class="login-input-user">
            <div class="login-input-img">
              <img src="@/assets/images/login/user.png" alt="" />
            </div>
            <div class="login-input-input">
              <el-input
                type="text"
                placeholder="请输入你的用户名"
                v-model="loginForm.user"
                class="login-input-text"
              />
            </div>
          </div>
          <div class="login-input-password">
            <div class="login-input-img">
              <img src="@/assets/images/login/psd.png" alt="" />
            </div>
            <div class="login-input-input">
              <el-input
                type="password"
                placeholder="请输入你的密码"
                v-model="loginForm.psd"
                class="login-input-text"
              />
            </div>
          </div>
          <!-- <div class="login-input-edit">
            <img src="@/assets/images/login/edit.png" alt="" />
            <span>密码重置</span>
          </div> -->
          <div class="login-input-login" @click="login">登录</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "LoginPage",
  data() {
    return {
      loginForm: {
        user: "",
        psd: "",
      },
    };
  },
  props: {},
  components: {},
  methods: {
    login() {
      console.log("页面登录", this.loginForm);
      this.$router.push("/situation");
    },
  },
  computed: {},
  created() {},
  mounted() {},
  destroyed() {},
};
</script>

<style lang="scss" scoped>
.login {
  width: 100%;
  // height: 100vh;
  background: url("~@/assets/images/login/background.png") no-repeat center
    center;
  background-size: 100% 100%;
  .login-top {
    height: 14vh;
    line-height: 12vh;
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1ed7fc;
    background: url("~@/assets/images/login/top.png") no-repeat center center;
    background-size: 100% 100%;

    letter-spacing: 0.15em; /* 设置字间距为0.2em，可以根据需要调整 */
  }
  .login-content {
    height: 74vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    .login-input {
      width: 60rem;
      height: 31.25rem;
      background: url("~@/assets/images/login/login.png") no-repeat center
        center;
      background-size: 100% 100%;
      .login-input-title {
        text-align: center;
        height: 4.375rem;
        line-height: 4.375rem;
        font-size: 1.5rem;
        font-weight: 500;
        color: #36def3;
        letter-spacing: 0.15em; /* 设置字间距为0.2em，可以根据需要调整 */
      }
      .login-input-user-psd {
        width: 25rem;
        height: 17.8125rem;
        margin: 3.8125rem 4.6875rem 1.875rem 31.875rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        .login-input-user,
        .login-input-password {
          width: 15rem;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          margin: 0.9375rem 0px;
          .login-input-img {
            width: 2.5rem;
            height: 2.5rem;
            padding: 0.4375rem;
            background-color: #146495;
            border: 0.09rem solid #073876;
            img {
              width: 100%;
              height: 100%;
            }
          }
          .login-input-input {
            width: 12.5rem;
            height: 2.5rem;
            margin-left: 0.3125rem;
            background-color: #156aa2 !important;
          }
        }
        .login-input-edit {
          width: 15rem;
          display: flex;
          flex-direction: row;
          justify-content: flex-end;
          align-items: center;
          text-align: right;
          img {
            width: 1rem;
            height: 1rem;
          }
          span {
            font-size: 1rem;
            color: #a4d6ef;
            margin-left: 0.3125rem;
            cursor: pointer;
          }
          :hover {
            color: #fff;
          }
        }
        .login-input-login {
          width: 15rem;
          height: 2.5rem;
          line-height: 2.5rem;
          font-size: 1.25rem;
          font-weight: 500;
          margin-top: 0.9375rem;
          color: #ffffff;
          text-align: center;
          background-color: #0091dc;
          cursor: pointer;
        }
      }
    }
  }
  ::v-deep .el-input__inner {
    color: #fff;
    background-color: #156aa2 !important;
    border: 0.09rem solid #073876;
  }

  ::v-deep .el-input__inner::placeholder {
    color: #a4d6ef;
  }
}
</style>
